class Admin < ActiveRecord::Base
  has_many :infos
  
  def clear_password!
    self.password = nil 
  end
  
  def login!(session)
    session[:admin_id] = id
  end
end
